const path = require('path');
function resolve(dir) {
    return path.join(__dirname, '.', dir)
}
module.exports = function override(config, env) {
    // 配置文件别名
    config.resolve.alias = {
        '@': resolve('src'),
        "com":resolve("src/components"),
        "api":resolve("src/api"),
        "mock":resolve("src/mock"),
        "router":resolve("src/router"),
        "store":resolve("src/store"),
        "util":resolve("src/util"),
        "views":resolve("src/views"),
        "cart":resolve("src/views/Cart"),
        "home":resolve("src/views/Home"),
        "classify":resolve("src/views/Classify"),
        "my":resolve("src/views/My"),
        "noFound":resolve("src/views/NoFound"),
        "styled":resolve("src/styled")
    }
    return config;  }